package aaa.main;
 
import greendroid.app.GDApplication;
import aaa.screen.WelcomeScreen;
import android.content.Intent;
import android.net.Uri;

/**
 * 
 * 
 * @author		Schnell Michaël, Zanette Sébastien
 */
public class AdeWebApplication extends GDApplication {
	
//	/**
//	 * Main application intent.
//	 */
//	private static Intent MAIN_APP_INTENT = null ;

    /** {@inheritDoc} */
    @Override
    public Class<?> getHomeActivityClass() {
        return WelcomeScreen.class;
    }// getHomeActivityClass()
    
    /** {@inheritDoc} */
    @Override
    public Intent getMainApplicationIntent() {
//    	if (AdeWebApplication.MAIN_APP_INTENT == null) {
//    		AdeWebApplication.MAIN_APP_INTENT = new Intent(Intent.ACTION_VIEW, 
//    				Uri.parse(this.getString(R.string.app_url))) ;
//    	}// if
//        return AdeWebApplication.MAIN_APP_INTENT ;
    	return new Intent(Intent.ACTION_VIEW, 
				Uri.parse(this.getString(R.string.app_url))) ;
    }// getMainApplicationIntent()
    
}// class AdeWebApplication